package com.snimay.app.menu.vo;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.snimay.heibernate.Annotation.table;

/**   
 * @Title      : Menu.java
 * @Package    : com.snimay.app.menu.vo
 * @Description: TODO 
 * @author     : xxy
 * @date       : 2018年5月29日 下午12:03:40
 * @version    : V1.0   
 */
@Entity
@Table(name = "SYS_Menu")
@table(query = "id", name = "菜单",size=10)
public class Menu {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long id;
	/**
	 * @Description: 目录名称 
	 * @author     : xxy
	 */
	@Column(name = "text_")
	public String text;
	/**
	 * @Description: 目录功能 
	 * @author     : xxy
	 */
	@Column(name = "app_")
	public String app;
	/**
	 * @Description: 目录类型
	 * @author     : xxy
	 */
	@Column(name = "clazz_")
	public String clazz;
	/**
	 * @Description: 上级目录
	 * @author     : xxy
	 */
	@ManyToOne(cascade = CascadeType.ALL)  
	public Menu parent;
}
